package com.zm.eureka.eurekaclient2.demos.web.feign.controller;

import com.zm.feign.EurekaClientInterface;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class Client2Controller {
    @Resource
    EurekaClientInterface eurekaClientInterface;

    @RequestMapping("/get")
    public String get()
    {
        return eurekaClientInterface.get();
    }
}
